package net.nearst.oa.dao;

import java.util.List;

import net.nearst.oa.entity.DeptInfo;
import net.nearst.oa.util.PagingBean;

public interface IDeptInfoDao {
	public abstract List<DeptInfo> getAllDepts();
	public abstract DeptInfo getDeptInfo(String deptId);
	public abstract boolean deleteDept(String deptId);
	public abstract boolean updateDept(DeptInfo dept);
	public abstract boolean addDept(DeptInfo dept);
	public abstract int getDeptCountByCondition(DeptInfo queryDept);
	public abstract List<DeptInfo> getDeptsByCondition(PagingBean pagingBean, DeptInfo queryDept);
	public abstract List<DeptInfo> getAllDeptsByPage(PagingBean pagingBean);
	public abstract int getDeptCount();
}
